package com.org.springsecurityoauth2.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

//@RestController
@Controller
public class OauthTest {

    @GetMapping("/index")
    @ResponseBody
    public String goIndex(){
        return "/index.html";
    }

    @PostMapping("/toIndex")
    public String toIndex(){
        return "/index.html";
    }

    @RequestMapping("/toLogin")
    public String toLogin(){
        return "login.html";
    }

}
